flattening background