edited the comment in generateUnique