get rid of unnecessary promise type map