added print statements for debugging
removed debugging print statements