windows version is now work

but very chaos in code