update promise demo