clean part of code