replace file and add example