add triangle rules