final version of html parser