better table selection