changed promise to Promise, promise is deprecated