trying different approach for computing maximum radius