Replace elements file with list