removes extraneous print statements