refinement on entry id detection