eliminated some unnecessary print statements