deploying algorithm