looks like line() doesn't like lines going upwards