record the last status