return list of shares from list_shares function