changed puts to print

...for no particularly compelling reason.