fixed radius code