sorted out repeating lines