added two variables api for template