update HW5 solution; put safeguard on the MoM start point