added data output to template