k is startOfLoop,画图辅助