fix puts statements