A simple update

putting in the permuting code