add radius calculation