added different bayes models based on K