handled MAX_NUM_COL and MAX_NUM_ROW
show right-align integers in table