added puts statements