updates everything from the beginning