added member variables to keep track of changing likelihood, still clear problem with calculating likelihood