changed handling of instance where element was less than last element in the new list