Removing unnecessary puts