replace Mysis' broken code with Mysis' working code

(have not tested)
Merge pull request #1 from angelic-sedition/master

replace Mysis' broken code with Mysis' working code