modified triangle template