renaming algorithms and setting constants