limits the length of the history and with sequence oldest to newest