rewrite for head html