debugged radius and diameter part