remove global variable
Merge pull request #16 from zmmbreeze/master

Remove global variable x