improved legend in check of latent variables