oops, j is global