optional comments added, proper formatting