finalizing contract