add todo items, all reinterpret_cast items to int, use typecast inparam consitently