added loggin to transactions