implemented minimum distance at spawn