fixed %% syntax error