change duplicate line keys