update head, foot, text