added first history plotting