change var to protected
Merge pull request #2 from hehexianshi/master

change var to protected