making the filter more friendly with view modeling