indices over two objects and nested lists