the length is checked by js unit test.