fix incorrect puts statements