tested on smaller triangle