lean algorythm
lean algorythm is done