refactoring to promises
refactoring to promises