making some progress on the template