change filter error logic