remove extraneous Promise.resolve