algoritm level one completed