Still fails. Imho i screwed up with A[0] and dM[3]