add hooks for tsne