better styling
using native promises and resolve