make diagnostic buffer size a constant