masterSlaveDetermination procedure