radius can be a function