added structure for compass