small refactoring, splitter choosecardatindex fund, so that it is responsible for everything, also will make testing simpler