details tmpl work and codestyle