consisten use of one() /many() when getting data for the generated data function()