creating function added to buildingInfo