change fulfill to resolve, removed properties
avoiding onFulfilled and onRejected functions is called in the same
event loop.