finishing confirm function