refine table selection