modifications to filter functionality