sin flattening