Select.cpp Refrectoring