replace dummy type Functor with NullType
update example