Theoretically ready algorithm for negative errors