Update select.cpp