add scheme-code function.