externalized accumulator hack for logical ops