added define for maxNameLength