Refactor

1.Merge the two judgments.
2.Remove the `called`.