1. simplify default value assignment.
2.fix indentation of anomalies assignment.