faster searching by using selectors vs functions