triangle fixes