add calculate diameter