add history length limitation