got rid of printf statements