replace LOGE and LOGD with LOGx