there appeared to be a precedence issue with index() when used without parentheses