removed redundant code. simplified uuid generation