added buildArray() and applying selectors to items