updated the secured_map