adds generate uid