changes for adding templates