deleted unused displayed parts from def template
formated source