adding sleeping mode for process