fixing template syntax