modified the log lik function to only consider absolute values