fixing function call
Merge pull request #2 from helenphillips/fixingbugs

fixing function call