restricted onms and offms's maximum length to 9