add create_building func