added triangle drawing