sorry, I realize misread your function - it's that the indexer can't have dimension of 2 - sorry about that!