add core part code