corrected syntax error (added $ to variable $j)