removed debugging print statements and pause