replace all puts