refactor selectorHelper