updating the portfolio