remove useless puts commands