removed debug print statements and also added print statements to tell
user what happened