add wrtnode to reference