get inputs in dict and array