pass parameter as a reference instead of a copy
Merge pull request #39 from kdomanski/master

pass parameter as a reference instead of a copy