update linewidth