allow mixing primes and subscripts: a'_1 and b_2'