added a log message for debug