update compass example