return data in templates