added genUID fn