add the AlgorithmInput Function