removed redundant print statements