+ code refactoring to align with the convention of node.js