added mm1 solving method