remove double permute