removed console logging and whitespace