del comments
major function for MLE
sol for q07