us template.id insted of template._id