creating device and all merge was done