finishing building functions