recreate save quote logic