fixed prior probabilities in subtask 7