add more params to initfunctios