add protection inference