error content filtering core logic