saving current intermediate state