cleaning up latent part also