remove unnecessary process.nextTick()