Where are $$k_s$$ and $$k_c$$, cannot find in your codes.
Where are$$k_s$$ and $$k_c$$ , cannot find in your codes.