restoring integrity