updates to portfolio functions