refine level check