select in list or element, moved to fcn