changed value of j
resolve this stuff