three stage transaction