moved all sleep in blocks