removed print statements used only for monitoring