got rid of unnecessary print statements