distance fixes