Latent instrumental variables, a new approach to solve for endogeneity