added in a flattening ability