removed not needed process.nextTick