removing internal print statements