fixing defect when one list is longer than the other