implement namespace rule. reimplement margin rules