changed quad to triangle