optimized reset file