cleans up puts statements