adding process finalization