added initialization method to clear building flag