flattening should remove the link to the outer class