updating head