reformat and allowing Length == 0