new record selection code tables and logic