add key  extends of templates