fix math for inner radius