effective flattening