param fix without c++ class