replaced puts with print \n