update CodeSelector.cpp