add orientation calculation