finishing fix of inputsDict logic