added some code to prepare loveMao method