function with inline print did not need to be in the final puts