make MAX_LENGTH an object()