rootlist declaration and return rootlist