add rule
convert code