implement base template
fixing of templates