fixed get method to include matching root