trying to use template engine