updated code and k1 files