added selector specificity function