final version for the template generation done...