adding total failed to the final result