Can't use index as a function