added console log debug