replaced algorithm-selection-param with template param