html processing improvement