added error code for duplicate entries in unique sets