getting optimised selector