modifies some puts statements