update security logics