continued updates to classifyTemplate