update the core