add loop to workers