add method to determine whether to pass larger list or smaller list