clean code state