to coding __Stop function