moved sleep within worker