permuting is slow