changed to use setImmediate