begin writing shareStatus function