update heading weight variable