write rule