impl setting of algorithm