remove extra rows from name list