replace the 2nd occurence and on