changin N to M in trigcf