change genId()