correct borrowed code leakage