enum helper for comparing values