put invNorm in its own file