method of maximum likelihood estimation