added debug triangle helper