added checkRow method