make use of compile time known number of rows and cols