update promise syntax