remove puts lines