added console log to trace action