removing superflous print statements