moved hist init before populate