removed printf that was for debugging purposes