removed several print statements