code Refactoring.