update the "head"