removed print statements and changed a function description.