allow an index argument