moving algorithm type to param