function to set line style, fixes