update thickness