working on triangle