isMaster variable added