added EOF in the template