remove duplicates from variables