faster ls++ replacement