handle select fields