added triangle buffer