merge function
reinitialized files