fml
looping and search/replacing