error handling for duplicate datasets