loop over all slaves