use macro for max field length