adapt to cores change