removing excess print statements