syntax error in max
corrected a bug in the max of likelihood