loop to produce j/psi