debugged the filter error