wavefunction: fixed indices order in a template
bec: added missing keyword