filtering failed transactions