changed the debugging print statements