code in basic transactions functionality