Jeremy Lin is heading back to New York to play for his former team’s cross-town rival, the Brooklyn Nets.

According to The Vertical’s Adrian Wojnarowski, Lin has agreed to sign a three-year, $36 million deal with the Nets. Lin also announced the news, tweeting out a photoshopped picture of him in front of the Nets’ logo:

With Brooklyn recently waiving Jarrett Jack, Lin will likely be the starting point guard in Brooklyn.

The Nets were reportedly going to be aggressively pursuing Lin at the start of free agency and it seems like their pursuit paid off. Brooklyn may have had a leg up on the competition as new coach Kenny Atkinson was an assistant on the Knicks when Linsanity happened. Atkinson worked closely with Lin during that time period and their relationship is clearly still quite strong.