fixed log statements