updated the parameters to call similarity and hierarchy