update the shareInstance