start wmalgorithm