reducing print statements