check for duplication