adding log statements