update head