refactored unique addition