changed inputNames and inputValues to StringMap