allow pass seed_record and customize the way to find the largest record