updatin security context