removed print commands used for debugging