adjusting max name length handling