note to self, does j exist globally after this?