adding prints when process ends.