updated the select directives