add error handling for duplicate className