add some security when removing transactions