modify portfolio class