removed trailing empty rows