replace LOGD and LOGD with LOGx