added some methods for template rendering