your code does not accept a callable factory