continue renaming variables in class "algorithm.php"