fixed code template
set template is working