changed linewidth to int