changes likelihood value to int