The National Basketball Players Association has signed a contract to sell its headquarters in Harlem for $21 million.

Once the sale is completed next year, the organization will relocate to a 47,000-square-foot facility in midtown Manhattan that includes a practice court, locker room, lounge and training facility, the union said.

The union bought the Harlem building at 310 Lenox around 2007, at which time its value was listed at $3.4 million in a filing with the U.S. Department of Labor. The union’s 2014 labor filing, or LM-2, said the building was worth $19.7 million.