implementing confirm