removed print statements used for debugging