got rid of the unnecessary print statements