use the first two fields as key fields