updating heading locally