change max likelihood paramters to median