removed puts statements