refining a transaction