algorithm excise