added precomputed unary path