index: more explicit logic comparison