extracted selector calculation