added transaction finish method