added limits to history