related to uniform pion generation commit. Forgot to add this change to initial commit