added merging of split variables