add method to get finished processes