refactored average total building
refactored building totals