changed input type for rowcols; later maybe to doubles. works for now