compass algorithm now chooses closest marker not random one