added factory fro selectors