implements draw lines