win function working
finit