sleep in tight loop