search elements by reference