added new rules for magnitude
added new rules for magnitude