changed newAlgo to correct form
split currentalgo into 2