added a delegate call for the completion of the transactio