max distance changed to radius