specify cols and rows instead of width and height