refactor collorCall.js