edited process_subscription method