restoring to functional state