confusing i for j or something somewhere...need sleep