made print statements proper function calls