addding core code