clean code- if changed