found the working headtracking code