limit the number of root elements