checks for select