replaced puts with print