add rule proc