Merge cd to mater