add portfolio selection function