implemented an history thingy