got rid of unnecessary print