lines are joined before fixing integers - required to prevent vector indices becoming floating point.