working on getting latent svm detection working