removed print statements added for debugging