lost inheritance for Template