updated for negative likelihood check