working on selector code