making it logical with the select