Code refactoring(shortening code)