fixed shadowed variable
removed redundant render template