cleaned up the model lhood