auto generate rules
auto generate rules