add initial and final bearing calculations