added kf v-1 just sketch of code