changed wall thickness equations to be more explicit