add code rule