added reference collection stage to saving operation (preparation for cell saving)