add bearing calculation