fix method interface
Merge pull request #2 from edgabaldi/master

fix method interface