polish template hash