notes
swapped out permute algo