added circleDiameter function