fixed the portfolio part (almost)