Tried enclosing (j+1) in brackets