He built up the city around the fort. He filled in the low places. He built a wall around it. During that time, Joab built up the rest of the city.