fixed the order of the data and parameter arguments in the likelihood functions