added more root similarity stuff