change parameters names in algorithm.php