specific script for each alg