getValue now returns filter function too