removing surplus print statements