working get root method