cleaning up extra whitespace and unnecessary puts