revise referent_id generate algorithm