pass the all system test!

Though only implementing procedure, it took a lot of time to solve the
midium problem...