removing unnecessary print statements