change to max(LogL, 1e-50)