made t-SNE func local to conform with rest of toolbox