history initialization moved to main class
removed unused functions