add bm_cmp