select output ref after insert