Modify the formate of constructor of slave and master