Repeated code is poor style.  Define an auxiliary function that takes one parameter, e.g., "row0" as parameter.