remove latent testing code