updated struct test and triangle show