flush after RMA and AMO, condense win ternary