after more than 10 hours of debugging, finally pass all tests
code I used to debug mp6
mp6 test data set and script