using modline and better folding