replaced print statements