lv3: refine logic