rewrite for head fix