finalizing subs