remove unnecessary code from modelselect