begin check dist