change range of rows and cols to begin at 0