plug inversed by on transaction to make for a valid query