added bit about  promises