set proper unique id