converted log_det