update core and function