initial core code