dynamic syntax working for greedy static masks