update generate temple