new version
corrected error in transforming Y in likelihood