rewrite the head section