flatness control