adapt to cores changes