change the constructor for KeyValue in ajva