2nd ma implemented. Need to fix the results