manage empty rows