fixed checking for h1, h2