added minimum distance at spawn