restoring original state