changed print statements to log statements