fixed an issued with the model and finding distributions, it had been assuming 2 when more were possible