add decorate_scheme confirm function

Hi,Dr Ji

    I have complete the decorate_scheme confirm function.

    Please check it.

    Thanks!
variable naming style not aligned here, the style of next line is better