manually copying previous state