create a selector with ids