implemented some templates