it works,but wizard func is so bad, see the comments
it works