changed to use longer history size