filter by rule shape