Earase buffer transformed to local variable