code for share