implement inner rows and columns