small changes, worked on categorical+continuous latent model