compilant. Split two pieces if code into separate functions to do not exceed line length due to indentation.