adjusted maxrad algorithm