modified distance-cheker