maly refactoring