make `filter` callback function supports (info) and (result, info) parameters.