added loop for process to stay