updated todo
added stats and base case for multiple errors