before adding portfolioID