update cost + filter security