re ordered parameters for draw line method