setup new algorithm