other implementation
Fixed the new algo, report almost finished