added console log message for debugging