added template
fixed typo