added resolvedPromise