update building state