duplicate variable detection