removed debug statements and newlines after functions