using two generator records