clean code and logs