adaptive rebuilding