added triangle directive.