remove unwanted puts