add the case of not_triangle