add building build function