adding transaction to post method