refactored first line