changed names from ABF to ldens and loglik to improve code readability