return elements rather than indexes