compass code works