justify and refactoring line of life