first step of algo to module