flatten: better block order