call distance checks in the rightious place