fixed subscript typo in definition of functor