fixed bug: keep %% instead of translating it into a function