refactoring of body