the new algorithm included the root module itself