share function Init