updates history