refactored log message.