update coversion table of length (ratio), and try to write a test code.