refactored the promise chain to test what's entering the first .then()