Refactor method call in utils.cpp
Merge pull request #5 from iofg2100/refactor-method-call

Refactor method call in utils.cpp