check the constant first for performance reasons