merging and var selection completed