combine function of .Ind and .Sam
typo fix