added flatten-lenses