add the sharefunction