add rule attributes