removed rules if empty