improved producing sequence of block-level elements