returning of generated reference