updated to new select interface