checking for empty rows