using &aux to simplify rflatten