i fixed it and also added smoth movement Thumbnail is wrong but i am to lazy to change it :|
orginal code from sveisblind