History of the black head temple