get rid of duplicated line