added checkRow and deleteRow(incomplete)