simplified select implementation