continuing GI algorithm...