added an extra function to my line draws