fixes function params.
Merge pull request #32 from birkin/master

fixes function params.