refactor uuid generaiton

refactor uuid generaiton