integrated removetuples decorator to transactions.py