algorithm files addition