removed most of the debugging print statements.