this doesn't work as the Promise could return an undefined which cannot be used as input.
f
this doesn't work as the Promise could return an undefined which cannot be used as input.