remove unnessary duplicated info and lines