work for selection of nested entities