using file for template