first initialization of master