merging variables