implemented filter error handling