fixed mle_type functions