modify the head