set k:v correctly