fixed duplicated lines