Flattening transformation done