corrected how J is specified in pw.inp