removes puts statements