adding variable j