removed irrelevant print statements