function for generating a new uuid