update head size