change params to unit for init factory