adding slaves calls and struct