update definition of master and slave